// This code is licensed under New BSD Licence. For details see project page at
// http://code.google.com/p/hrissan-cocoa-helpers/source/checkout
#import "CellLoader.h"


@implementation CellLoader

@synthesize cell, view;

+ (CellLoader*)createWithNib:(NSString*)name
{
	return [[[self alloc] initWithNib:name] autorelease];
}

- (id)initWithNib:(NSString*)name
{
	if( self == [super init] )
	{
		[[NSBundle mainBundle] loadNibNamed:name owner:self options:nil];
	}
	return self;
}

- (void)dealloc {
	self.cell = 0;
	self.view = 0;
    [super dealloc];
}

@end
